<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>违规登记管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
			$("#btnExport").click(function(){
				top.$.jBox.confirm("确认要导出违规信息数据吗？","系统提示",function(v,h,f){
					if(v=="ok"){
						$("#searchForm").attr("action","${ctx}/illegalregistration/dmsIllegalRegistration/export");
						$("#searchForm").submit();
					}
				},{buttonsFocus:1});
				top.$('.jbox-body .jbox-icon').css('top','60px');
			});
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
		
	<link type="text/css" rel="stylesheet" href="${ctxStatic}/css/dmsIllegalRegistrationForm.css" />
	<script type="text/javascript" src="${ctxStatic}/js/dmsIllegalRegistrationForm.js"></script>
	<script type="text/javascript" src="${ctxStatic}/layer/layer.js"></script>
</head>
<body>
	
	 <ul class="nav nav-tabs">
		 <li class="active"><a href="${ctx}/illegalregistration/dmsIllegalRegistration/">违规登记列表</a></li>
		<%-- <shiro:hasPermission name="illegalregistration:dmsIllegalRegistration:edit"><li><a href="${ctx}/illegalregistration/dmsIllegalRegistration/form">违规登记添加</a></li></shiro:hasPermission> --%>
	 </ul> 
	<form:form id="searchForm" modelAttribute="dmsIllegalRegistration" action="${ctx}/illegalregistration/dmsIllegalRegistration/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>违规日期：</label>
				<input name="illegalDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate m"
					value="<fmt:formatDate value="${dmsIllegalRegistration.illegalDate}" pattern="yyyy-MM-dd"/>"
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
			</li>
			<li><label>违规人姓名：</label>
				<form:input path="illegalPersonName" htmlEscape="false" maxlength="50" class="input-medium l"/>
			</li>
			<li><label>学号：</label>
				<form:input path="studentNumber" htmlEscape="false" maxlength="20" class="input-medium l"/>
			</li>
			<li><label>宿舍号：</label>
				<form:input path="dormitoryNumber" htmlEscape="false" maxlength="20" class="input-medium w"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="btns">
			<input id="btnExport" class="btn btn-primary" type="button" value="导出"/>
			</li>
			<li class="btns"><a href="${ctx}/illegalregistration/dmsIllegalRegistration/form"><input id="btnSubmit" class="btn btn-primary" type="button" value="违规登记添加"/></a></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>违规日期</th>
				<th>违规人员姓名</th>
				<th>学号</th>
				<th>宿舍号</th>
				<th>违规原因</th>
				<th>惩罚金额</th>
				<%-- <shiro:hasPermission name="illegalregistration:dmsIllegalRegistration:edit"><th>操作</th></shiro:hasPermission> --%>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="dmsIllegalRegistration">
			<tr>
				<td><%-- <a href="${ctx}/illegalregistration/dmsIllegalRegistration/form?id=${dmsIllegalRegistration.id}"> --%>
					<fmt:formatDate value="${dmsIllegalRegistration.illegalDate}" pattern="yyyy-MM-dd"/>
				<!-- </a> --></td>
				<td>
					${dmsIllegalRegistration.illegalPersonName}
				</td>
				<td>
					${dmsIllegalRegistration.studentNumber}
				</td>
				<td>
					${dmsIllegalRegistration.dormitoryNumber}
				</td>
				<td>
					${dmsIllegalRegistration.illegalReason}
				</td>
				<td>
					${dmsIllegalRegistration.fine}
				</td>
 <%-- 				<shiro:hasPermission name="illegalregistration:dmsIllegalRegistration:edit"><td>
    				<a href="${ctx}/illegalregistration/dmsIllegalRegistration/form?id=${dmsIllegalRegistration.id}">修改</a>
					<a href="${ctx}/illegalregistration/dmsIllegalRegistration/delete?id=${dmsIllegalRegistration.id}" onclick="return confirmx('确认要删除该违规登记吗？', this.href)">删除</a>
				</td></shiro:hasPermission> --%>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>